//
//  RJHomeTopMapPointView.m
//  AirQuality
//
//  Created by Po on 15/6/2.
//  Copyright (c) 2015年 Po. All rights reserved.
//

#import "RJHomeTopMapPointView.h"

@interface RJHomeTopMapPointView ()

@end

@implementation RJHomeTopMapPointView
- (void)setNum:(NSString *)num
{
    UILabel * label = [[UILabel alloc] initWithFrame:self.bounds];
    label.userInteractionEnabled = YES;
    [label setTextColor:[UIColor blackColor]];
    [label setTextAlignment:NSTextAlignmentCenter];
    label.font = [UIFont systemFontOfSize:14];
    [label setText:num];
    if ([num isEqualToString:@"(null)"]) {
        [label setText:@"—"];
    }
    UIButton * button = [[UIButton alloc] initWithFrame:self.bounds];
    [button addTarget:self action:@selector(tag1) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:button];
    [self.layer setBorderWidth:1];
    [self.layer setBorderColor:[UIColor whiteColor].CGColor];
    [self.layer setCornerRadius:5];
    [self setClipsToBounds:YES];
    [self addSubview:label];
}

- (void)tag1
{
    NSLog(@"111");
}

@end
